# ---------------------------------------------------------------------
# fm.ignoreeventrule application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------

# NOC modules
from noc.lib.app.extmodelapplication import ExtModelApplication
from noc.fm.models.ignoreeventrules import IgnoreEventRules
from noc.sa.interfaces.base import REParameter
from noc.core.translation import ugettext as _


class IgnoreEventRuleApplication(ExtModelApplication):
    """
    IgnoreEventRule application
    """

    title = _("Ignore Event Rules")
    menu = [_("Setup"), _("Ignore Event Rules")]
    model = IgnoreEventRules

    clean_fields = {"left_re": REParameter(), "right_re": REParameter()}
